package Gestion;

import java.sql.ResultSet;
import java.sql.SQLException;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author josedavo
 */
public class Logros {
    private int codlogros;
    private String nomlogros; 
    
    
    
     
    public Logros() { }


    public Logros(int codlogros, String nomlogros) {
        this.codlogros = codlogros;
        this.nomlogros = nomlogros;
    }
    
public static Logros load(ResultSet rs) throws SQLException{
        Logros logro=new Logros();

        logro.setCodlogros(rs.getInt(1));
        logro.setNomlogros(rs.getString(2));
       

        return logro;
    }
    
    
    public int getCodlogros() {
        return codlogros;
    }

    public void setCodlogros(int codlogros) {
        this.codlogros = codlogros;
    }

    public String getNomlogros() {
        return nomlogros;
    }

    public void setNomlogros(String nomlogros) {
        this.nomlogros = nomlogros;
    }
   
}
